﻿using A.M.ETO;
using A.M.Storage.I_Application;
using L.M.System.Domain.DTO;
using L.M.System.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace L.M.System.Application.IServices
{
    public interface IDelivery_addressServices: IBaseServices<delivery_address,string>
    {
        /// <summary>
        /// 交付地址查询 + 分页
        /// </summary>
        /// <param name="pageSize">每页条数</param>
        /// <param name="pageIndex">当前页索引</param>
        /// <param name="tName">查询条件</param>
        /// <returns>交付地址查询 + 分页</returns>
        Task<ApiReturn<PageETO<delivery_address>>> GetDelivery_addressRead(int pageSize, int pageIndex, string? tName);

        /// <summary>
        /// 地址添加
        /// </summary>
        /// <param name="addAdderInforDTO">DTO</param>
        /// <returns>统一返回格式</returns>
        Task<ApiReturn<string>> AddAdderInfor(AddAdderInforDTO addAdderInforDTO);

        /// <summary>
        /// 删除地址
        /// </summary>
        /// <param name="aId">地址编号</param>
        /// <returns>统一返回格式</returns>
        Task<ApiReturn<string>> DelInforAdder(string? aId);

        /// <summary>
        /// 修改默认地址
        /// </summary>
        /// <param name="rId">编号</param>
        /// <returns>修改默认地址</returns>
        Task<ApiReturn<string>> GteUpdSattyInfor(string? rId);
    }
}
